#!/usr/bin/env bash

res=`curl -s -k -X  POST https://api.zoomeye.org/user/login -d \
'{
    "username": "tianchuiqin@gmail.com",
    "password": "a49810712"
}'`

token="`echo $res | sed 's/.*: \(.*\)}/\1/g'`"




page=$1
keywords=$2




cmd="curl -s -k -X GET 'https://api.zoomeye.org/web/search?query=%20SeleniumHQ$%20&page=$page' \
-H \"Authorization: JWT $token\""
#echo $cmd

#
res=`eval $cmd`
echo $res
#
#
#
